package com.aosiding.demo.service;


import com.aosiding.demo.domain.User;

import java.util.List;

public interface CRUDService {
    //获取所有用户
    List<User> getAllUser();

    //根据id获取用户信息
    User getUserById(Long id);

    //新增用户
    boolean createUser(User user);

    //根据id删除用户
    boolean deleteById(Long id);

    //根据id更改用户
    boolean updateById(User user);
}
